import request from '@/common/js/request.js'

export default {

	// 后台插入数据
	insetData(data) {
		return request({
			url: '/Users/auth',
			method: 'POST',
			data
		})
	},
	// 后台插入数据22222
	insetDatatwo(data) {
		return request({
			url: '/Users/phone',
			method: 'POST',
			data
		})
	},
	// 获取openid
	loginByProvider(data) {
		return request({
			url: '/Users/getCodeTransferOpenid',
			method: 'POST',
			data
		})
	},
	

	
	
	
	//退出系统
	logout(accessToken) {
		return request({
			url: '/auth/logout', // /auth/logout?accessToken=${accessToken}
			method: 'GET',
			data: { accessToken }
		})
	}

}